package com.zhangrui.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * ClassName:Teacher
 * Package:com.zhangrui.pojo
 * Description:
 *
 * @Date:2021/8/2322:45
 * @Author:zhangrui@qq.com
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Teacher {
    private int id;
    private String name;
    //    一个老师有多个学生，一对多
    private List<Student> students;
}
